echo ""
echo "Compiling"
make clean
make all

echo ""
echo "Demo for Converter"
./converter sample_grammar.txt sample_file.txt
echo "Translation written to translation.txt"

echo ""
echo "Demo for Common Prefix"
./checker leftfac.txt translation.txt

echo ""
echo "Demo for Left Recursion"
./checker leftrec.txt translation.txt

echo ""
echo "Demo for First set, Follow set, and Parsing table"
./checker sample_grammar.txt translation.txt
echo ""